#pragma once
#include "MultiMedia.h"
#include "Book.h"
#include <vector>
#include <string>
#include <fstream>
#include <iterator>

class MultiMediaRegistry
{
private:
	

public:

	vector<MultiMedia *> registry;

	MultiMediaRegistry(void);
	~MultiMediaRegistry(void);

	void addEntry( MultiMedia *multiMedia );
	void deleteEntry( MultiMedia *multiMedia );

	std::vector<MultiMedia *>::iterator TypeCheck();


	void searchMultiMediaString( std::vector<MultiMedia *> &vector, std::string type, std::string value);
	void searchMultiMediaYear( std::vector<MultiMedia *> &vector, int value );

	void sortRegistry();
	void writeRegistryToFile();
	void readRegistryFromFile();
};

